import request from '/@/utils/request';

/**
 * 系统管理模块
 */
export function systemApi() {
	return {
		orgTree: () => {
			return request({
				url: '/api/admin/org/orgTree',
				method: 'post',
			});
		},
		orgSchoolTree: () => {
			return request({
				url: '/api/admin/org/orgSchoolTree',
				method: 'post',
			});
		},
		orgAreaTree: () => {
			return request({
				url: '/api/admin/org/orgAreaTree',
				method: 'post',
			});
		},
		orgLeaderTree: () => {
			return request({
				url: '/api/admin/org/orgLeaderTree',
				method: 'post',
			});
		},
		orgBOETree: () => {
			return request({
				url: '/api/admin/org/orgBOETree',
				method: 'post',
			});
		},
		orgSchoolOnlyTree: () => {
			return request({
				url: '/api/admin/org/orgSchoolOnlyTree',
				method: 'post',
			});
		},
		saveOrUpdate: (data: object) => {
			return request({
				url: '/api/admin/org/saveOrUpdate',
				method: 'post',
				data,
			});
		},
		removeById: (data: object) => {
			return request({
				url: `/api/admin/org/removeById`,
				method: 'post',
				data,
			});
		},

	};
}
